import request from '/@/utils/request';
export function fetchList (page:number, limit:number, searchObj:JSON) {
  return request({
    url: `admin/user/findPage/${page}/${limit}`,
    method: 'post',
    data: searchObj// 使用json
  })
}
  export function lockStatus(id:number,  status:number)  {
        return  request({
            url:  `admin/user/lock/${id}/${status}`,
            method:  'get'
        })
  }
//用户详情
export function show(id:number) {
  return  request({
    url:  `admin/user/show/${id}`,
    method:  'get'
  })
}
//用户详情
export function switchAuth(id:number,  status:number) {
  return  request({
    url:  `admin/user/switchAuth/${id}/${status}`,
    method:  'get'
  })
}